/* eslint-disable spaced-comment */
/* eslint-disable semi */
/* eslint-disable no-multi-spaces */
/* eslint-disable comma-dangle */
/* eslint-disable quotes */
import request from '@/utils/request'
// 查询所有省
export function getAllProvince(query) {
  return request({
    url: '/web/v1/address/all/province',
    method: 'get',
    params: query
  })
}
// 根据省，查询省下的市
export function getCityByProvince(query) {
  return request({
    url: '/web/v1/address/all/cities',
    method: 'get',
    params: query
  })
}
// 根据市，查询其下的区
export function getAreaByCity(query) {
  return request({
    url: '/web/v1/address/all/areas',
    method: 'get',
    params: query
  })
}

export function post(url, params) {
  return request({
    url: url,
    method: 'post',
    data: params
  });
}

export function get(API_URL, query) {
  return request({
    url: API_URL,
    method: 'get',
    params: query
  })
}

